/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-04-28
 * Time:11:20
 */
public class TestDemo {
    public static void main(String[] args) {
        Person person=new Person();
        person.setAge(18);
        person.setName("张三");
        person.printPerson();
        System.out.println("-----------------------");
        Student student=new Student();
        student.setName("李四");
        student.setAge(19);
        student.setClassName("class1");
        student.printPerson();
        System.out.println("-----------------------");
        student.printStudent();
    }
}
